﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

using ZMenFM.Utils;

namespace ZMenFM.Interface
{
    /// <summary>
    /// ZMPlayerWindow.xaml 的交互逻辑
    /// </summary>
    public partial class ZMPlayerWindow : Window
    {
        ZMenFM.Utils.UI.ZMWindowShadow Shadow;

        public ZMPlayerWindow()
        {
            InitializeComponent();
        }

        /// <summary>
        /// 开启Aero特效
        /// </summary>
        /// <param name="e"></param>
        protected override void OnSourceInitialized(EventArgs e)
        {
            base.OnSourceInitialized(e);
            //ZMenFM.Utils.UI.Aero.ZMAeroHelper.ExtendGlassFrame(this, new Thickness(-1));
        }

        /// <summary>
        /// 阴影窗口
        /// </summary>
        /// <param name="e"></param>
        protected override void OnInitialized(EventArgs e)
        {
            base.OnInitialized(e);
            Shadow = new Utils.UI.ZMWindowShadow(this);
        }

        private void Window_MouseMove(object sender, MouseEventArgs e)
        {
            if (Mouse.LeftButton == MouseButtonState.Pressed)
            {
                this.DragMove();
            }
        }
    }
}
